﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Purdue.Infrastructure;

namespace Purdue.ViewModel
{
    public class ViewModelBase : NotificationObject
    {
        public IDataContext Database;

        public ViewModelBase()
        {
            Database = new IDataContext(DbHelper.DbCommon.ConnectionString);
        }

        public void Save()
        {
            Database.SubmitChanges();
        }
    }
}
